import Layout from '@/layout'

export default {
  path: '/ich',
  component: Layout,
  redirect: '/ich/heritage',
  alwaysShow: true,
  name: 'Ich',
  meta: { title: '非遗管理', icon: 'international', permissions: ['ich:heritage:list'] },
  children: [
    {
      path: 'category',
      component: () => import('@/views/ich/category/index'),
      name: 'Category',
      meta: { title: '非遗类别', icon: 'nested', permissions: ['ich:category:list'] }
    },
    {
      path: 'heritage',
      component: () => import('@/views/ich/heritage/index'),
      name: 'Heritage',
      meta: { title: '非遗信息', icon: 'list', permissions: ['ich:heritage:list'] }
    },
    {
      path: 'product',
      component: () => import('@/views/ich/product/index'),
      name: 'Product',
      meta: { title: '非遗商品管理', icon: 'shopping', permissions: ['ich:product:list'] }
    },
    {
      path: 'stock',
      component: () => import('@/views/ich/stock/index'),
      name: 'Stock',
      meta: { title: '库存管理', icon: 'date', permissions: ['ich:stock:list'] }
    },
    {
      path: 'forum',
      component: () => import('@/views/ich/forum/index'),
      name: 'Forum',
      meta: { title: '论坛管理', icon: 'message', permissions: ['system:forum:list'] }
    },
    {
      path: 'stats',
      component: () => import('@/views/ich/statistics/index'),
      name: 'Statistics',
      meta: { title: '数据统计', icon: 'chart', permissions: ['ich:stats:list'] }
    }
  ]
} 